package com.sunmall.common;

import com.sunmall.util.MD5Util;
import org.junit.Test;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class test26 {


    MD5Util md5Util;


    @Test
    public void demo1() {
        System.out.println("1111");
    }

    public static void main(String[] args) {
        System.out.println("q");
    }


    @Test
    public void testToken() throws InterruptedException {
        TokenCache.setKey("1236", "8899");
        Thread.sleep(2000);
        System.out.println(TokenCache.getKey("1236"));
        System.out.println(UUID.randomUUID());
    }

}
